Skip to content

IT-682: Update action.yml to remove grep for drush error#3

Merged
adamcbowman merged 1 commit intomainfrom
IT-682
Sep 2, 2025
Merged

IT-682: Update action.yml to remove grep for drush error#3
adamcbowman merged 1 commit intomainfrom
IT-682

Conversation

@adamcbowman
Copy link
Contributor

@adamcbowman adamcbowman commented Sep 2, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Workflow now fails immediately on installation errors, preventing misleading success states.
  • Refactor
    • Simplified the installation step by removing custom log parsing and messaging, relying on native exit codes for clearer behavior.
  • Chores
    • Reduced log noise and eliminated temporary log artifacts for cleaner action output.

@coderabbitai
Copy link

coderabbitai bot commented Sep 2, 2025

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch IT-682

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
action.yml (4)

55-55: Fix trailing whitespace.

Yamllint flags a trailing space after the command.

-        ddev install-site 
+        ddev install-site

53-56: Harden the shell and confirm failure semantics.

Relying on exit codes is fine; please confirm ddev install-site/Drush return non‑zero on failure in your cases. Also, use stricter shell options for robustness.

-        set -e
+        set -euo pipefail

55-55: Optional: keep logs for debugging without custom greps.

If you want install logs when failures occur, tee to a file (with pipefail above) and upload as an artifact in the calling workflow.

-        ddev install-site
+        ddev install-site 2>&1 | tee install-site.log

39-46: Mask sensitive inputs in logs.

Action inputs aren’t auto-masked. Add mask directives before writing keys/auth to disk to reduce exposure in logs.

       run: |
         mkdir -p .ddev/homeadditions/.ssh
+        echo "::add-mask::${{ inputs.ssh-key }}"
         echo "${{ inputs.ssh-key }}" > .ddev/homeadditions/.ssh/id_rsa
         chmod 700 .ddev/homeadditions/.ssh
         chmod 600 .ddev/homeadditions/.ssh/id_rsa
         mkdir -p .ddev/homeadditions/.composer
+        echo "::add-mask::${{ inputs.composer-auth }}"
         echo '${{ inputs.composer-auth }}' > .ddev/homeadditions/.composer/auth.json
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between cf9d1da and 93b65e7.

📒 Files selected for processing (1)
  • action.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
action.yml

[error] 55-55: trailing spaces

(trailing-spaces)

@nchiasson-dgi nchiasson-dgi added the major Backwards incompatible API changes. label Sep 2, 2025
@adamcbowman adamcbowman merged commit 7beafec into main Sep 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Backwards incompatible API changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants